package com.lagou.edu.bean;

import java.util.ArrayList;
import java.util.List;
import java.util.Properties;

/**
 * @ClassName BeanDefination
 * @Description 解析class获取到的对象
 * @Author playboy
 * @Date 2021/4/20 2:20 下午
 * @Version 1.0
 **/
public class BeanDefination {

    //beanName
    private String id;

    //当前bean的class
    private Class<?> classType;

    //需要添加的依赖
    private List<FieldDefination> fieldDefinations = new ArrayList<>();

    //解析Transcation注解获取的信息
    private TransactionInfo transactionInfo;

    private Properties properties = new Properties();

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Class<?> getClassType() {
        return classType;
    }

    public void setClassType(Class<?> classType) {
        this.classType = classType;
    }

    public List<FieldDefination> getFieldDefinations() {
        return fieldDefinations;
    }

    public void setFieldDefinations(List<FieldDefination> fieldDefinations) {
        this.fieldDefinations = fieldDefinations;
    }

    public TransactionInfo getTransactionInfo() {
        return transactionInfo;
    }

    public void setTransactionInfo(TransactionInfo transactionInfo) {
        this.transactionInfo = transactionInfo;
    }

    public Properties getProperties() {
        return properties;
    }

    public void setProperties(Properties properties) {
        this.properties = properties;
    }
}
